<h2>Inactivate Subscribers</h2>
<div class="errorval"><?php echo validation_errors(); ?>
<?php echo $error; ?></div>
<p>This function sets subscriber_status' to inactive for any subscriber who's payments expired before the date specified below.</p>
<p>NB: It is recommended that the database is backed up before running this function as changes are non-reversible.</p>
<p><strong>WARNING: Only do this if you know what you are doing.</strong></p>
<center>
<table>
<?php echo form_open('admin/reports_management/inactivateSubscribers/'); ?>
<tr>
	<th align="right">Expired before:</th>
	<td colspan="2"><?php echo form_input('as_of_date', date('Y-m-d')); ?></td>
</tr>
<tr>
	<th align="right" class="tablehead">Actions</th>
	<td colspan="2"><?php echo form_submit('inactivate', 'Inactivate Subscribers'); ?></td>
</tr>
<?php echo form_close(); ?>
</table>
</center>

<script type="text/javascript">
$(document).ready(function() {
		$( '[name="as_of_date"]' ).datepicker({ dateFormat: 'yy-mm-dd', changeMonth: true, changeYear: true });
});
</script>